package com.xiaoyu.net.request;

import in.srain.cube.request.JsonData;
import in.srain.cube.request.RequestHandler;

public class RequestWithJsonDataReturn<T> extends QueuedSimpleRequest<T, JsonData> {

    protected boolean mPostEventWhenFail;

    public RequestWithJsonDataReturn() {
        super();
    }

    public RequestWithJsonDataReturn(RequestHandler<T, JsonData> handler) {
        setRequestHandler(handler);
    }

    public RequestWithJsonDataReturn<T> setPostEventWhenFail(boolean postEventWhenFail) {
        mPostEventWhenFail = postEventWhenFail;
        return this;
    }
}